﻿using Soft.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Soft.Service
{


    /// <summary>
    /// JobClassInfo信息
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
    public sealed class JobClassInfoAttribute : Attribute
    {

        public JobClassInfoAttribute(JobServiceMode mode, MesMethodFlag flag)
        {
            this.Mode = mode;
            this.MesMethod = flag;
        }


        /// <summary>
        /// 服务实例化的方式
        /// </summary>
        public JobServiceMode Mode { get; set; }

     
        /// <summary>
        /// 服务所属的模块
        /// </summary>
        public MesMethodFlag MesMethod { get; set; }


    }
}
